package merchant

import "crmeb-common/global"

// MerchantApply 商户申请表
type MerchantApply struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:申请用户ID"`

	Name string `json:"name" gorm:"column=name;comment:商户名称"`

	CategoryId int32 `json:"categoryId" gorm:"column=category_id;comment:商户分类ID"`

	TypeId int32 `json:"typeId" gorm:"column=type_id;comment:商户类型ID"`

	Account string `json:"account" gorm:"column=account;comment:商户账号"`

	Password string `json:"password" gorm:"column=password;comment:登录密码"`

	RealName string `json:"realName" gorm:"column=real_name;comment:商户姓名"`

	Email string `json:"email" gorm:"column=email;comment:商户邮箱"`

	Phone string `json:"phone" gorm:"column=phone;comment:商户手机号"`

	HandlingFee int32 `json:"handlingFee" gorm:"column=handling_fee;comment:手续费(%)"`

	Keywords string `json:"keywords" gorm:"column=keywords;comment:商户关键字"`

	Address string `json:"address" gorm:"column=address;comment:商户地址"`

	IsSelf bool `json:"isSelf" gorm:"column=is_self;comment:是否自营：0-自营，1-非自营"`

	IsRecommend bool `json:"isRecommend" gorm:"column=is_recommend;comment:是否推荐:0-不推荐，1-推荐"`

	AuditStatus int32 `json:"auditStatus" gorm:"column=audit_status;comment:审核状态：1-待审核，2-审核通过，3-审核拒绝"`

	DenialReason string `json:"denialReason" gorm:"column=denial_reason;comment:拒绝原因"`

	AuditorId int32 `json:"auditorId" gorm:"column=auditor_id;comment:审核员ID"`

	Remark string `json:"remark" gorm:"column=remark;comment:备注"`

	QualificationPicture string `json:"qualificationPicture" gorm:"column=qualification_picture;comment:资质图片"`
}
